﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TikTakTau_ServerProject
{
    class Program
    {
        /// <summary>
        /// To be called once per game. A tournament round consists of multiple games.
        /// </summary>
        /// <param name="args">The parameters of the round.</param>
        /// <param name="args[0]">The path to the first client. Required.</param>
        /// <param name="args[1]">The path to the second client. Required.</param>
        /// <param name="args[2]">The path to output the results, in addition to the console. Optional.</param>
        /// <param name="args[3]">The width of the star system. Optional</param>
        /// <param name="args[4]">The height of the star system. Optional.</param>
        /// <param name="args[5]">The length of supply chain necessary to conquer the star system. Optional.</param>
        /// <param name="args[6]">"Yes" if this star system should be played as a tiebreaker; otherwise, "No". Optional.</param>
        /// <remarks>If no parameters are specified, TikTakTau_Client1.dll and TikTakTau_Client2.dll from the executable's directory will battle.</remarks>
        static void Main(string[] args)
        {
            Server GameServer;

            //DEBUG - to be uncommented when playing the tournament
            GameServer = new Server(args);
     /*       try
            {
                GameServer = new Server(args);
            }
            catch (SystemException e)
            {
                System.Console.Write(e);
                return;
            }*/
            GameServer.begin();
        }
    }
}
